// src/http/api.js
import Service from './axios.js'

//get模板
export const getTest = data => {
    return Service({
        url: '/user/DetailByID?user_ID=' + data,
        method: 'GET',

    })
}
//post模板
export const postTest = data => {
    return Service({
        url: '',
        method: 'POST',
        data
    })
}
export const aTest = data => {
    return Service({
        url: '/user/test',
        method: 'POST',
    })
}

/*User----------------------------------------------------------------------------*/
export const aGetUserNum = data => {
    return Service({
        url: '/user/selectUserNum',
        method: 'GET',
    })
}

export const aUserNumChange = data => {
    return Service({
        url: '/user/userNumChange',
        method: 'GET',
    })
}
/*Song----------------------------------------------------------------------------*/
export const aGetSongAll = () => {
    return Service({
        url: '/song/getAll',
        method: 'GET',
    })
}
export const aGetSongME = (song_ID) => {
    return Service({
        url: '/song/aGetSongME?song_ID=' + song_ID,
        method: 'GET',
    })
}
export const aGetSongNum = data => {
    return Service({
        url: '/song/getSongNum',
        method: 'GET',
    })
}

export const aGetUnapprovedSong = data => {
    return Service({
        url: '/song/getUnapprovedSong',
        method: 'GET',
    })
}

export const aGetBanSong = data => {
    return Service({
        url: '/song/getBanSong',
        method: 'GET',
    })
}
export const aBanSong = (song_ID, song_Name, examination) => {
    return Service({
        url: '/song/banSong?song_ID=' + song_ID + "&song_Name=" + song_Name + "&examination=" + examination,
        method: 'GET',
    })
}

/*Singer----------------------------------------------------------------------------*/
export const aGetSingerNum = data => {
    return Service({
        url: '/singer/getSingerNum',
        method: 'GET',
    })
}
export const AApprovedSong = (song_ID, song_Name) => {
    return Service({
        url: '/song/ApprovedSong?song_ID=' + song_ID + "&song_Name=" + song_Name,
        method: 'GET',

    })
}

export const AApprovedSinger = (singer_ID, singer_name) => {
    return Service({
        url: '/singer/ApprovedSinger?singer_ID=' + singer_ID + "&singer_name=" + singer_name,
        method: 'GET',

    })
}
export const AArriveSong = (song_ID, song_Name) => {
    return Service({
        url: '/song/arriveSong?song_ID=' + song_ID + "&song_Name=" + song_Name,
        method: 'GET',

    })
}
export const ANoExamine = (song_ID, song_Name) => {
    return Service({
        url: '/song/ANoExamine?song_ID=' + song_ID + "&song_Name=" + song_Name,
        method: 'GET',

    })
}

export const ANoExamineSinger = (singer_ID, singer_Name, examination) => {
    return Service({
        url: '/singer/ANoExamineSinger?singer_ID=' + singer_ID + "&singer_Name=" + singer_Name + "&examination=" + examination,
        method: 'GET',
    })
}
export const aGetUnapprovedSinger = data => {
    return Service({
        url: '/singer/getUnapprovedSinger',
        method: 'GET',
    })
}

export const aGetSingerME = data => {
    return Service({
        url: '/singer/getSingerME?singer_ID=' + data,
        method: 'GET',
    })
}
/*Album----------------------------------------------------------------------------*/
export const aGetAlbumNum = data => {
    return Service({
        url: '/album/getAlbumNum',
        method: 'GET',
    })
}





